<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>智能考勤系统</title>
    <script text="text/javascript" src="./js/index.js"></script>
    <style>
        body {
            height: 100%;
            margin: 0;
            padding: 0;
            background: url('https://cdn.pixabay.com/photo/2018/08/14/13/23/ocean-3605547_1280.jpg') no-repeat;
            background-size: cover;
            background-position: center center;

        }

        .parent_box {
            display: flex;
            /* 使用 Flexbox 布局 */
            justify-content: center;
            /* 水平居中对齐 */
            align-items: center;
            /* 垂直居中对齐 */
            width: 100vw;
            /* 父容器宽度为视口宽度 */
            height: 100vh;
            /* 父容器高度为视口高度 */
        }

        .container_box {
            width: 85%;
            height: 75%;
            background-color: #00000060;
            text-align: center;
            border-radius: 10px;
            padding: 50px 50px;
            border: solid 1px #ffffffff;
            color: #fff;
        }

        h1 {
            color: #ffffffff;
            /* margin-top: 5%; */
        }

        table {
            /* border: solid 1px #ffffffff; */
        }

        .previous_btn {
            /* 设置背景图片 */
            /* background-color: transparent; */
            background-image: url("./img/previous_btn.png");
            /* 设置背景大小 */
            background-size: cover;
            background-color: rgba(0, 0, 0, 0);
            /* 设置按钮宽高 */
            /* 设置透明度为0 */
            /* opacity: 0; */
            width: 16px;
            height: 16px;

            /* border: none;
            outline: none; */
        }

        .previous_btn .clicked {
            /* 设置点击时的背景图片 */
            background-image: url("./img/previous_btn_clicked.png");
        }

        .next_btn {
            /* 设置背景图片 */
            /* background-color: transparent; */
            background-image: url("./img/next_btn.png");
            /* 设置背景大小 */
            background-size: cover;
            background-color: rgba(0, 0, 0, 0);
            /* 设置按钮宽高 */
            /* 设置透明度为0 */
            width: 16px;
            height: 16px;

            /* border: none;
            outline: none; */
        }

        .next_btn .clicked {
            /* 设置点击时的背景图片 */
            background-image: url("./img/next_btn_clicked.png");
        }
    </style>
</head>

<body onload="load_fun();">
    <div class="parent_box">
        <div class="container_box">
            <h1 id="check"></h1>
            <form>
                <div id="user_div">
                    用户：<input type="text" id="user">
                </div>
                <div id="card_div">
                    卡号：<input type="text" id="card">
                </div>
                <div id="date_div">
                    日期:<select id="year_select" onchange="set_select_data();">
                        <option value=""></option>
                        <option value="2020">2020</option>
                        <option value="2021">2021</option>
                        <option value="2022">2022</option>
                        <option value="2023">2023</option>
                        <option value="2024">2024</option>
                    </select>年
                    <select id="month_select" onchange="set_select_data();">
                        <option value=""></option>
                        <option value="01">1</option>
                        <option value="02">2</option>
                        <option value="03">3</option>
                        <option value="04">4</option>
                        <option value="05">5</option>
                        <option value="06">6</option>
                        <option value="07">7</option>
                        <option value="08">8</option>
                        <option value="09">9</option>
                        <option value="10">10</option>
                        <option value="11">11</option>
                        <option value="12">12</option>
                    </select>月
                    <select id="day_select">
                    </select>日
                </div>
                <input type="checkbox" id="is_like_checkbox" value="is_like">模糊查找
                <input type="button" value="查询" onclick="up_data();">
                <input type="reset" value="重置">
                <input type="button" id="delete" value="删除" onclick="delete_btn();">
                <input type="button" id="update" value="修改" onclick="update_btn();">
                <input type="button" id="get_card_btn" value="获取卡号" onclick="get_card();">
                <br>
            </form>
            <br>
            <br>

            <table id="table" border="1px" align="center">
                <tr>
                    <th width='120' height='50' align='center'>用户</th>
                    <th width='120' height='50' align='center'>卡号</th>
                    <th width='120' height='50' align='center'>日期</th>
                    <th width='120' height='50' align='center'>上班打卡时间</th>
                    <th width='120' height='50' align='center'>上班打卡状态</th>
                    <th width='120' height='50' align='center'>下班打卡时间</th>
                    <th width='120' height='50' align='center'>下班打卡状态</th>
                </tr>
            </table>
            <div id="pagination-container">
                <button class="previous_btn" onclick="previousPage()"></button>
                <label id="page_num">1</label>
                <button class="next_btn" onclick="nextPage()"></button>
            </div>
        </div>
    </div>
</body>

</html>